package com.qiangesoft.miniapp.util;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

/**
 * 分页参数基类
 *
 * @author qiangesoft
 * @date 2024-06-28
 */
@Data
public class BasePage implements Serializable {

    @Range(min = 1, message = "页码最小值为1")
    protected Integer pageNum = 1;

    @Range(min = 1, max = 2000, message = "每页数据范围为1~2000")
    protected Integer pageSize = 10;

}
